<?php

require_once './application/controllers/ControllerBase.php';
require_once './application/core/CoreBase.php';
require_once './application/core/Console/indexCore.php';
require_once './application/core/Console/commandCore.php';

class ConsoleController extends ControllerBase
{

    function indexAction()
    {
        $this->verifConnexion();
        $this->renderTabControl();
        $core = new IndexCore($this);
        $core->Execute();
    }

    function commandAction()
    {
        $this->verifConnexion();
        $this->noRender();
        $c = new commandCore($this);
        $c->command();
    }

    function commandrespAction()
    {
        $this->verifConnexion();
        $this->noRender();
        $c = new commandCore($this);
        $c->commandResp();
    }

}